package com.gr.controller;

import com.gr.entity.Log;
import com.gr.service.ILogService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/log")
public class LogController {
    @Resource
    private ILogService logService;
    @PostMapping("/insert")
    public void insert(@RequestBody Log log){
        logService.save(log);
    }
}
